package com.demo.springcloud.netflix.erureka;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Provider Service
 * 
 * @author xiaojianhx
 * @version V1.0.0 $ 2023-11-15 01:10:28 init ---- xiaojianhx
 */
@Component
@FeignClient(name = ProviderConstants.SERVICE_ID)
public interface ProviderService {

    @RequestMapping(value = "/sub")
    String test(@RequestParam("name") String name);
}